package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author DarkClown
 * @date 2024-08-15 20:34
 * @project_name jzo2o-foundations-01-0
 * @parem
 **/
public interface IServeService extends IService<Serve> {

    PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);


    void bachAdd(List<ServeUpsertReqDTO> serveUpsertReqDTOList);

    Serve update(Long id, BigDecimal price);

    Serve onSale(Long id);

    Serve offSale(Long id);

    Serve delete(Long id);

    Serve onHot(Long id);

    Serve offHot(Long id);
}
